// +---------------------------------------------------------------------
// | 加梯 [ LIFT赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.lift.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed LIFT并不是自由软件，未经许可不能去掉LIFT相关版权
// +---------------------------------------------------------------------
// | Author: 加梯 Team <admin@lift.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const meta = {
  auth: true,
};

const pre = 'building_';

export default {
  path: '/admin/building',
  name: 'building',
  header: 'building',
  redirect: {
    name: `${pre}list`,
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'list',
      name: `${pre}Building`,
      meta: {
        auth: ['admin-building-index'],
        title: '楼宇信息管理',
      },
      component: () => import('@/pages/building/index')
    },
    {
      path: 'add_building/:id?',
      name: `${pre}addBuilding`,
      meta: {
        auth: ['admin-add-building'],
        title: '新增楼宇信息',
      },
      component: () => import('@/pages/building/add/index')
    }
  ],
};
